<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
  <head>
    <?php print $head ?>
    <?php print $styles ?>
    <?php print $scripts ?>
    
    <?php print $ie ?>
    <title><?php print $head_title ?></title>
  </head>
  <body <?php print drupal_attributes($attr) ?>>

  <div id='global'><div class='limiter clear-block'>
    <?php if ($header): ?>
      <div id='header' class='dropdown-blocks toggle-blocks clear-block'>
        <?php print $header ?>
      </div>
    <?php endif; ?>
    <?php print $breadcrumb ?>
    <?php //print $logo ?>
    <?php 
     global $user;
     if ($user->uid > 0) {
        $o='<form name="tuxform">    <input type="hidden"  id="tuser" name="tuser" value="'.$user->extention.'">     </form>';
        echo $o;
     };    
    drupal_add_js("
         $(document).ready(function () {
         $('#tuser').submit(function () );
        });", "inline");
    $item1 = menu_get_item();
    $path=$item1['path'];
    if ($path != 'userdetail')
        $cti='<A href="javascript: closepopup()">CTI</A>';
    ?>
    <div id="channellist" class='tuxcti'>
        <span class='link link-6'>&nbsp; </span>
    </div>
    <div id="statusbar" class='tuxcti'>
        <span class='link link-6'>&nbsp; <?echo $cti;?></span>
    </div>
  </div></div>
  <!--
        <span style="margin-left: 400px;text-align:right;width:300px;height:40px;font-weight:bold">&nbsp;</span>
  -->
  <?php if ($primary_links): ?>
  <div id='navigation'><div class='limiter clear-block'>
    <?php if (isset($primary_links)) print theme('links', $primary_links, array('id' => 'features-menu', 'class' => 'links primary-links')) ?>
    <?php if ($space_tools): ?>
      <div id='space-tools'><div class='dropdown-blocks toggle-blocks clear-block'><?php print $space_tools ?></div></div>
    <?php endif; ?>
  </div></div>
  <?php endif; ?>

  <div id='page-tools'><div class='limiter clear-block'>
    <?php if ($tabs):?><div class='tabs clear-block'><?php print $tabs ?></div><?php endif; ?>
    <?php if (!$tabs && $title): ?><h2 class='page-title'><?php print $title ?></h2><?php endif; ?>
    <?php if ($help_toggler):?><?php print $help_toggler ?><?php endif; ?>
    <?php if ($context_links): ?><div class='context-links'><?php print $context_links ?></div><?php endif; ?>
    <?php if ($page_tools): ?><div class='dropdown-blocks toggle-blocks clear-block'><?php print $page_tools ?></div><?php endif; ?>
  </div></div>

  <?php if ($tabs2): ?>
    <div id='secondary-tabs'><div class='limiter clear-block'><?php print $tabs2 ?></div></div>
  <?php endif; ?>

  <?php if ($messages): ?><div id='messages'><?php print $messages; ?></div><?php endif; ?>

  <div id='page'><div class='limiter clear-block'>
    <?php if ($mission): ?><div class="mission"><?php print $mission ?></div><?php endif; ?>
